package org.example.controller.product;

import com.bianmaba.spring.web.controller.CrudController;
import org.example.bean.entity.product.Product;
import org.example.service.product.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: example-web-framework-extends
 * @description:产品管理控制层
 * @author: Chenjiabin
 * @create: 2018-04-21 11:45
 **/
@RestController
@RequestMapping(value = {"management/product"})
public class MGTProductController extends CrudController<Product, String> {

    @Autowired
    private IProductService service;

    @Override
    protected IProductService getService() {
        return service;
    }

}
